import { Modal } from 'antd'

const useModal = () => {
  const [modal, contextHolder] = Modal.useModal();
  return {
    modal,
    contextHolder,
  }

}

export default useModal